#include "chessDef.h"

const ChessDef::pieceID ChessDef::initBoard[9][10] = {
    {ChessDef::rche, ChessDef::kong, ChessDef::kong, ChessDef::bing, ChessDef::kong, ChessDef::kong, ChessDef::zu,   ChessDef::kong, ChessDef::kong, ChessDef::bche},
    {ChessDef::rma,  ChessDef::kong, ChessDef::rpao, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::bpao, ChessDef::kong, ChessDef::bma},
    {ChessDef::rxiang, ChessDef::kong, ChessDef::kong, ChessDef::bing, ChessDef::kong, ChessDef::kong, ChessDef::zu,  ChessDef::kong, ChessDef::kong, ChessDef::bxiang},
    {ChessDef::rshi, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::bshi},
    {ChessDef::shuai, ChessDef::kong, ChessDef::kong, ChessDef::bing, ChessDef::kong, ChessDef::kong, ChessDef::zu, ChessDef::kong, ChessDef::kong, ChessDef::jiang},
    {ChessDef::rshi, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::bshi},
    {ChessDef::rxiang, ChessDef::kong, ChessDef::kong, ChessDef::bing, ChessDef::kong, ChessDef::kong, ChessDef::zu,  ChessDef::kong, ChessDef::kong, ChessDef::bxiang},
    {ChessDef::rma,  ChessDef::kong, ChessDef::rpao, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::kong, ChessDef::bpao, ChessDef::kong, ChessDef::bma},
    {ChessDef::rche, ChessDef::kong, ChessDef::kong, ChessDef::bing, ChessDef::kong, ChessDef::kong, ChessDef::zu,   ChessDef::kong, ChessDef::kong, ChessDef::bche}
};

const std::map<ChessDef::pieceID, std::string> ChessDef::pieceBmpPaths = {
    {ChessDef::rche, "./che0.bmp"},
    {ChessDef::rma, "./ma0.bmp"},
    {ChessDef::rxiang, "./xiang0.bmp"},
    {ChessDef::rshi, "./shi0.bmp"},
    {ChessDef::shuai, "./king0.bmp"},
    {ChessDef::rpao, "./pao0.bmp"},
    {ChessDef::bing, "./bing0.bmp"},
    {ChessDef::bche, "./che1.bmp"},
    {ChessDef::bma, "./ma1.bmp"},
    {ChessDef::bxiang, "./xiang1.bmp"},
    {ChessDef::bshi, "./shi1.bmp"},
    {ChessDef::jiang, "./king1.bmp"},
    {ChessDef::bpao, "./pao1.bmp"},
    {ChessDef::zu, "./bing1.bmp"}
};